package com.example.myapplication;

import com.example.myapplication.module.EngineModule;

import javax.inject.Singleton;

import dagger.Component;

/**
 * Created by Lx on 2018/8/24.
 */
//@Singleton//添加后变成局部单例
@ApplicationScope//自定义注解实现全局单列
@Component(modules = {GsonModule.class})
public interface UtilCompoent {

    void inject(MainActivity mainActivity);

    void inject(TwoActivity twoActivity);
}
